<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
    function Student() {}
    let s1=new Student();
    s1.name="张三";
    s1.age=18;
    s1.run=function () {
        alert(this.name+":"+this.age)
    }
    s1.run();

    let p1={}
    p1.name="李四";
    p1.age=20;
    p1.run=function () {
        alert(this,name+":"+this.age);
    }
    p1.run();

    let p2={
        name:"张学友",
        age:58,
        run:function () {
            alert(this.name+":"+this.age);
        }
    }
    p2.run();


    let arr=[{title:"xiaomi",price:3000,num:1000},
        {title:"huawei",price:3800,num:800},
        {title:"apple",price:6800,num:200}];

</script>
</body>
</html>